<?php echo $header; ?>
      <div class="col1 float_left">
        <div class="col1_content p20r p15t brsolid">
          <p class="tt1 whitetext">Register</p>
          <div class="p15t">
			<p><?php echo $text_account_already; ?></p>
          </div>
		<?php if ($error_warning) { ?>
    <div align="left" class="error"><?php echo $error_warning; ?></div>
    <?php } ?>
		  <form action="<?php echo str_replace('&', '&amp;', $action); ?>" method="post" enctype="multipart/form-data" id="create">
          <div class="regis p30t float_left">
          	<label class="w110"><?php echo $entry_firstname; ?><span class="red">*</span></label>
            <input type="text"  name="firstname" value="<?php echo $firstname; ?>"  class="w206" /><br />
            <label class="w110"><?php echo $entry_lastname; ?><span class="red">*</span></label>
            <input type="text"  name="lastname" value="<?php echo $lastname; ?>" class="w206" /><br />
            <label class="w110"><?php echo $entry_email; ?><span class="red">*</span></label>
            <input type="text"  name="email" value="<?php echo $email; ?>"  class="w206" /><br />
            <label class="w110"><?php echo $entry_password; ?><span class="red">*</span></label>
            <input type="password"  name="password" value="<?php echo $password; ?>"  class="w206" /><br />
            <label class="w110"><?php echo $entry_confirm; ?><span class="red">*</span></label>
            <input type="password"  name="confirm" value="<?php echo $confirm; ?>" class="w206" /><br />            
			<div style="padding-top:15px">
			 <span style="vertical-align:top"><?php echo $entry_newsletter; ?></span>
			<?php if ($newsletter == 1) { ?>
              <input type="radio" name="newsletter" value="1" checked="checked" />
              <span style="vertical-align:top"><?php echo $text_yes; ?>&nbsp;</span>
              <input type="radio" name="newsletter" value="0" />
              <span style="vertical-align:top"><?php echo $text_no; ?></span>
              <?php } else { ?>
              <input  type="radio" name="newsletter" value="1" />
              <span style="vertical-align:top"><?php echo $text_yes; ?>&nbsp;</span>
              <input type="radio" name="newsletter" value="0" checked="checked" />
              <span style="vertical-align:top"><?php echo $text_no; ?></span>
              <?php } ?>
			</div>
			
			<br />
          </div>
          <div class="regis p30t float_left" style="padding-left:30px;">
          	<label class="w110"><?php echo $entry_telephone; ?><span class="red">*</span></label>
            <input type="text"  name="telephone" value="<?php echo $telephone; ?>"  class="w206" /><br />
            <label class="w110"><?php echo $entry_address_1; ?><span class="red">*</span></label>
            <input type="text"  name="address_1" value="<?php echo $address_1; ?>" class="w206" /><br />
            <label class="w110"><?php echo $entry_city; ?><span class="red">*</span></label>
            <input type="text"  name="city" value="<?php echo $city; ?>" class="w206" /><br />
            <label class="w110"> <?php echo $entry_country; ?><span class="red">*</span></label>
			<select  class="select_form" name="country_id" id="country_id" onchange="$('select[name=\'zone_id\']').load('index.php?route=account/create/zone&country_id=' + this.value + '&zone_id=<?php echo $zone_id; ?>');">
                <option value="FALSE"><?php echo $text_select; ?></option>
                <?php foreach ($countries as $country) { ?>
                <?php if ($country['country_id'] == $country_id) { ?>
                <option value="<?php echo $country['country_id']; ?>" selected="selected"><?php echo $country['name']; ?></option>
                <?php } else { ?>
                <option value="<?php echo $country['country_id']; ?>"><?php echo $country['name']; ?></option>
                <?php } ?>
                <?php } ?>
              </select><br />
            <label class="w110"><?php echo $entry_zone; ?><span class="red">*</span></label>
			<select  class="select_form" name="zone_id"  class="w206"></select>
			<div style="padding-top:15px">
			<span style="vertical-align:top"><?php echo $text_agree; ?>&nbsp;</span>
			<?php if ($agree) { ?><input type="checkbox" name="agree" value="1" checked="checked" />
              <?php } else { ?>
              <input type="checkbox" name="agree" value="1" />
              <?php } ?>
			</div>
			
            <br /><br />
            <label class="w110">&nbsp;</label> 
            <a onclick="$('#create').submit();" class="button"><img src="catalog/view/theme/w4u/img/send_but.png" alt="" /></a> 
            <a href="#"><img src="catalog/view/theme/w4u/img/reset_but.png" alt="" /></a>         
          </div>
		  </form>
          <div class="clearfix"></div>
        </div><br /><br />
      </div>
  <script type="text/javascript"><!--
$('select[name=\'zone_id\']').load('index.php?route=account/create/zone&country_id=<?php echo $country_id; ?>&zone_id=<?php echo $zone_id; ?>');
//--></script>
<?php echo $column_right; ?> <?php echo $footer; ?> 